package cn.xluobo.business.wechat.miniapp.course.domain.resp;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 上课详情
 * @author ：KingLong
 * @date ：Created in 2020/10/28 19:04
 */
@Data
@Builder
public class RespClaTimeAttendDetail {

    // 排课编号
    private Long courseTimeId;

    private String realClaDate;

    private String realStartTime;

    private String realEndTime;

    private String roomName;

    private String classTheme;

    private BigDecimal payHour;

    private String deptName;

    private String claName;

    private String courseName;

    private String teacherName;

    // 应到
    private Integer needAttendCnt;

    // 实到
    private Integer realAttendCnt;

    // 记录时间
    private Date createTime;

    // 出席信息
    private List<RespClaStudentAttendInfo> studentAttendList;

    public String getSubTitle() {
        return courseName + " · " +
                teacherName + " · " +
                realClaDate + " " +
                realStartTime.substring(0, 5) + "-" + realEndTime.substring(0, 5);
    }

}
